package com.ruoyi.mop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 药品类别对象 category
 *
 * @author ruoyi
 * @date 2024-03-08
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品类别ID */
    private Long id;

    /** 药品类别名称 */
    @Excel(name = "药品类别名称")
    private String name;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 药品列表 */
    private List<Medicine> medicineList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setMedicineList(List<Medicine> medicineList)
    {
        this.medicineList = medicineList;
    }

    public List<Medicine> getMedicineList()
    {
        return medicineList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
